/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-13 10:30:55
 * @FilePath: /yuxiuproweb/src/api/asc/room/index.js
 */
import request from "@/utils/request";

// 查询订单列表
export function listRoom(query) {
  return request({
    url: "/pro/room/list",
    method: "get",
    params: query,
  });
}

// 查询订单详细
export function getRoom(proRoomId) {
  return request({
    url: "/pro/room/" + proRoomId,
    method: "get",
  });
}

// 新增订单
export function addRoom(data) {
  return request({
    url: "/pro/room",
    method: "post",
    data: data,
  });
}

// 修改订单
export function updateRoom(data) {
  return request({
    url: "/pro/room",
    method: "put",
    data: data,
  });
}

// 删除订单
export function delRoom(proRoomIds) {
  return request({
    url: "/pro/room/" + proRoomIds,
    method: "delete",
  });
}
